#include <iostream>
using namespace std;
class ARRAY{
	int data[10];
	int max;
	int min;
	float average;
public:
	ARRAY(int a[10]);
	void process();
	void print();
};
ARRAY::ARRAY(int a[10]){
	int i;
	for(i=0;i<=9;i++){
		data[i]=a[i];
	}
}
void ARRAY::process(){
	int x;
	int t;
	int sum=0;
	for(x=0;x<=9;x++){
		sum+=data[x];
		if(data[0]<data[x]){
			t=data[0];
			data[0]=data[x];
			data[x]=t;
		}
	}
	max=data[0];
	average=sum/10.0;
	for(x=0;x<=8;x++){
			if(data[9]>data[x]){
				t=data[9];
				data[9]=data[x];
				data[x]=t;
			}
	min=data[9];
	}
	}
void ARRAY::print(){
	cout<<"max= "<<max<<" min="<<min<<" average="<<average<<endl;
}
int main(){
	cout<<"please put in the numbers"<<endl;
		int j,a[10];
			for(j=0;j<=9;j++){
				cin>>a[j];
			}
	ARRAY myARRAY(a);
	myARRAY.process();
	myARRAY.print();
	return 0;
	
	
}
	








